Each game menu is a tuple that contains the following fields:
1) Game-menu id (string): used for referencing game-menus in other files.
The prefix menu_ is automatically added before each game-menu-id.
2) Game-menu flags (int). See header_game_menus.py for a list of available flags.
You can also specify menu text color here, with the menu_text_color macro.
3) Game-menu text (string).
4) mesh-name (string). Currently not used. Must be the string "none".
5) Operations block (list). A list of operations. See header_operations.py for reference.
The operations block is executed when the game menu is activated.
6) List of Menu options (List).
Each menu-option record is a tuple containing the following fields:
6.1) Menu-option-id (string) used for referencing game-menus in other files.
The prefix mno_ is automatically added before each menu-option.
6.2) Conditions block (list). This must be a valid operation block. See header_operations.py for reference.
The conditions are executed for each menu option to decide whether the option will be shown to the player or not.
6.3) Menu-option text (string).
6.4) Consequences block (list). This must be a valid operation block. See header_operations.py for reference.
The consequences are executed for the menu option that has been selected by the player.
Note: The first Menu is the initial character creation menu.
General structure: (menu-id, menu-flags, menu_text, mesh-name, [<operations>], [<options>]),
module_game_menus.py Pages 21-23, some intro text here
Tthe following mesh flag is available for usage:
mnf_auto_enter | lets the player automatically enter the town with the first menu option. |
mnf_disable_all_keys | disables the usage of the keys P, I, C. |
mnf_enable_hot_keys | enables the usage of the keys P, I, C. |
mnf_join_battle | lets the game consider this menu when the player joins a battle. |
mnf_scale_picture | scales the menu picture to offset screen aspect ratio. |
menu text colour, Caba`drin, Modding Q&A
Passages in scenes, Somebody, Modding Q&A
only things executed between menu condition and consequences, cmpxchg8b, Modding Q&A
Passages, Somebody, Modding Q&A
enable hotkeys, Somebody, Modding Q&A
hard-coded alphabetic sorting in note list, The_dragon, Modding Q&A
menus are hard-coded presentations, kalarhan, Modding Q&A
Perhaps useful but probably outdated index of menus, Khalid ibn Walid (credit), 0.89x game_menus - index